FROM maven:3.5.4-alpine
MAINTAINER "qik"<1755979775@qq.com>
#创建目录
ADD . /eureka
#指定工作目录
WORKDIR /eureka/
#maven打包
RUN mvn clean package -Dmaven.test.skip=true
ENV JAVA_OPTS="\
-Xms512m \
-Xmx512m \
-Xmn128m \
-Xss228k \
-XX:SurvivorRatio=8 \
-XX:+UseConcMarkSweepGC \
"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar eureka-0.0.1-SNAPSHOT.jar" ]